const getLength = (target: string | number): number => {
    if (target as string) {
        return (target as string).length;
    } else {
        return target.toString().length;
    }
}